package com.stylefeng.guns.api.user;

import com.stylefeng.guns.api.user.vo.UserInfoModel;
import com.stylefeng.guns.api.user.vo.UserModel;

/**
 * @Author: jiaru
 * @Description:
 * @Date: Created on 2019/3/16
 * @Modify:
 */
public interface UserApi {
    int login(String username, String password);

    boolean register(UserModel model);

    boolean checkUsername(String username);

    UserInfoModel getUserInfo(int id);

    UserInfoModel updateUserInfo(UserInfoModel model);
}
